<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<form method="post" id="form${task.id}">
<input type="hidden" name="id" value="${task.id }"/>
<table class="detailTable">
	<tr>
		<td>实验学时：</td><td>${task.expHour }</td>
		<td>目的要求：</td>
		<td>
			<textarea name="goal" style="width:450px;height:40px;" onfocus="beginChangeForm(this)" onblur="saveForm('${task.id}')">${task.goal}</textarea>
		</td>
	</tr>
	<tr>
		
	</tr>
	<tr>
		<td>实验教材：</td>
		<td>
			<textarea name="books" style="width:450px;height:40px;" onfocus="beginChangeForm(this)" onblur="saveForm('${task.id}')">${task.books}</textarea>
		</td>
		<td>试验大纲：</td>
		<td>
			<textarea name="outline" style="width:450px;height:40px;" onfocus="beginChangeForm(this)"  onblur="saveForm('${task.id}')">${task.outline}</textarea>
		</td>
	</tr>
	<tr>
		
	</tr>
</table> 
 
</form>

<div style="padding:10px;">
	<a href="javascript:void(0)" style="margin-left:0px;" class="easyui-linkbutton l-btn l-btn-small " onclick="addItem('${task.id}')" >
		 添加教学项目 
	</a>
</div>
<div style="width:900px;height:210px;overflow:auto;">
 <t:datagrid name="list${task.id}" checkbox="false"  width="700px"
  	fitColumns="true" title=""  actionUrl="teachTaskSetController.do?itemDatagrid&id=${task.id}" 
  	idField="id" fit="true" queryMode="group" showPageList="false" showRefresh="false" pageSize="30" pagination="false">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="项目编号"  field="task.id" hidden="true"   queryMode="single"  width="120"></t:dgCol>    
   <t:dgCol title="项目编号"  field="item.itemNo"  queryMode="single"  width="120"></t:dgCol>  
    <t:dgCol title="项目名称"  field="item.itemName"  queryMode="single"  width="120"></t:dgCol>
    <t:dgCol title="实验类型"  field="item.testType.testTypeName"  queryMode="single"  width="120"></t:dgCol>  
    <t:dgCol title="实验类别"  field="item.testCategory.categoryName"  queryMode="single"  width="120"></t:dgCol>
    <t:dgCol title="课时"  field="powerValue"  queryMode="single"  width="120"></t:dgCol>      
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt funname="editItem({\"${task.id}\"},id)" title="修改"></t:dgFunOpt>
   <t:dgDelOpt title="删除" url="teachTaskSetController.do?doDelItem&id={id}" />
   
  </t:datagrid>
 </div>

 